package com.example.redissontest.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

import org.springframework.stereotype.Component;

/**
 * @author rfuser
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RepeatSubmitToken {
    // 可以添加一些属性，比如锁的过期时间等

    String  value() default "";

    long waitTime() default 1000L;

    long leaseTime() default 3000L;

    TimeUnit timeUnit() default TimeUnit.MILLISECONDS;


}
